package it.eng.area118.mdocommon.android.vibration;

public class AndroidVibrationManager {

	private static AndroidVibration INSTANCE;

	private static Object object = new Object();

	public synchronized static AndroidVibration createInstance() {
		synchronized (object) {
			if (INSTANCE == null) {
				INSTANCE = new AndroidVibration();
			}
			return INSTANCE;
		}

	}

	public synchronized static AndroidVibration getInstance() {
		synchronized (object) {
			if (INSTANCE == null) {
				throw new NullPointerException(
						"AndroidVibration instance never create... use createInstance first!");
			}
			return INSTANCE;
		}

	}
}
